package com.matt.foundation.vo;

import com.matt.commons.dto.sso.StaffDTO;
import lombok.Data;

/**
 * @author diao.qiao@outlook.com
 * @version V1.0
 * @description: 保育员页面对象，包含保育员id，名称，头像
 * @since 2018-12-28
 */
@Data
public class NurseVo {

    private String id;

    private String realName;

    private String imgUrl;

    public static NurseVo of(StaffDTO dto){
        NurseVo vo = new NurseVo();
        vo.setId(dto.getId());
        vo.setRealName(dto.getRealName());
        vo.setImgUrl(dto.getHeadImgUrl());
        return vo;
    }
}
